import 'package:flutter_bmfmap_example/http/http.dart';

class Deviceservice{
  static Future<dynamic> getDeviceLisst() async {
    var result = await Http.get('/deviceState/everydevice');
    return result;
  }

   static Future<int> operatedevice(int type,int id,String operation) async {
    var result = await Http.post('/devicestate/operation?typeId=$type&deviceId=$id&operation=$operation');
    return result;
  }
}